from flask import flash, render_template, g

from create_app import create_app
# from apps.codellama import generate_llama_obj

# 导入模型类
# from models import Users
# 通过 create_app 创建flask对象
app = create_app()

@app.route('/<int:num>')
def index(num):
     if num > 0:
         flash('You are successfully logined in', 'error')
         return render_template('paper_index.html')
     return render_template('paper_index.html')

if __name__ == '__main__':
    app.run(host="0.0.0.0", port="9052", debug=False)
